// 
import {request, uploadFile} from './bks.request'

// 学校列表
export const searchSchoolList = (data) => {
  return request({
    url: '/applet/applet-anon/school/list',
    method: 'post',
    data
  })
}

// 轮播图
export const carouselUrl = (params) => {
  return request({
    url: '/backend/backend-anon/carousel/url',
    method: 'get',
    params
  })
}



// 学生信息
export const studentInfo = () => {
  return request({
    url: '/applet/score/student/exam/info',
  })
}
// 考试列表
export const examList = (data) => {
  return request({
    url: '/applet/score/exam/list',
    data
  })
}
// 当前学校/年纪 参考试列表 
export const unitJoinExam = (data) => {
  return request({
    url: `/bigdata/bigdata-anon/unit/join/exam`,
    method: 'get',
    data
  })
}

// 考试详情
export const examScoreInfo= (data) => {
  return request({
    url: '/applet/score/save/score/info',
    method: 'post',
    data
  })
}





// 考生-倒计时
export const countdown = (data) => {
  return request({
    url: '/applet/member/applet-anon/countdown',
    data
  })
 }
// 区域列表
export const provincesList = (data) => {
 return request({
   url: '/applet/applet-anon/school/provinces',
   data
 })
}

// 学校特设
export const tagList = () => {
 return request({
   url: '/applet/applet-anon/school/school/tag'
 })
}

// 专业列表
export const majorList = (data) => {
  return request({
    url: '/applet/applet-anon/major/search',
    method: 'post',
    data
  })
}

// 专业大类
export const majorType = (params) => {
  return request({
    url: '/applet/applet-anon/major/all',
    params
  })
}

// 学校资料
export const materialsList = (data) => {
  return request({
    url: '/applet/materials/app',
    data
  })
}

// 学校资料标签（无需登录）
export const materialsTag = () => {
  return request({
    url: '/applet/materials/applet-anon/back/tagList',
    // method: 'post',
  })
}

// 成绩类型
export const scoreInfo = (data) => {
  return request({
    url: '/applet/score/info',
    data
  })
}

// 选科分析
export const analysisList = (data) => {
  return request({
    url: '/applet/major/comb/applet-anon/analysis',
    data
  })
}

// 选科分析-学校
export const analysisSchool = (data) => {
  return request({
    url: '/applet/major/comb/applet-anon/school',
    data
  })
}
// 选科分析-专业
export const analysisMajor = (data) => {
  return request({
    url: '/applet/major/comb/applet-anon/major',
    data
  })
}
// 赠送vip
export const vipGive = () => {
  return request({
    url: `/applet/member/vip/give`
  })
}
// 查询vi体验期是否赠送
export const vipSelectSet = () => {
  return request({
    url: `/applet/bksVipSetting/applet-anon/selectSet`
  })
}

// 查询所有考试
export const allExamList = () => {
  return request({
    url: `/backend/query/backend-anon/exam`,
    method: 'post'
  })
}